#include <gtest/gtest.h>

#include <cassert>

#include <cad-slicer/slicer.h>


std::string test_file;


namespace cadslicer {


TEST(slicer, non_empty_result)
{
  slicer::parameters param;
  {
    param.step = 500;
  }

  slicer sl(param);

  EXPECT_NO_THROW(sl(test_file));
}


} // cadslicer


int main(int argc, char** argv)
{
  ::testing::InitGoogleTest(&argc, argv);

  if (argc == 2)
  {
    test_file = argv[1];
  }
  else return 1;

  return RUN_ALL_TESTS();
}
